package com.hj.collegetravel.services;

import com.hj.collegetravel.models.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IAdminService {

    List<CUser> getUsers(String id, String username, String email, Integer sex, HttpServletRequest request);

    List<CSchool> getSchools(String id, String name, HttpServletRequest request);

    List<CIndex> getAds(String id, String desc, HttpServletRequest request);

    List<CView> getViews(String id, String name, Integer flag, Integer school, HttpServletRequest request);

    List<CAdmin> getRoles(String id, String username, String email, String phone, HttpServletRequest request);

    List<CComment> getComments(String id, Integer flag, Integer view, HttpServletRequest request);

    List<CPicture> getPictures(Integer id, Integer flag, HttpServletRequest request);

    List<CUpdate> getUpdates(Integer id, Integer flag, HttpServletRequest request);

    boolean checkpass(String pass, HttpServletRequest request);

    boolean dologin(String login, String pwd, HttpServletRequest request);

    boolean addUser(CUser cUser, HttpServletRequest request);

    void userEdit(Integer uId, HttpServletRequest request);

    boolean editUser(CUser cUser, HttpServletRequest request);

    boolean delUser(Integer[] ids, HttpServletRequest request);

    boolean uploadpic(String file, HttpServletRequest request);

    boolean addSchool(CSchool cSchool, HttpServletRequest request);

    boolean eSchoolPic(String file, Integer id, HttpServletRequest request);

    void schoolEdit(Integer sId, HttpServletRequest request);

    boolean editSchool(CSchool cSchool, HttpServletRequest request);

    boolean delSchool(Integer[] ids, HttpServletRequest request);

    boolean addAds(CIndex cIndex, HttpServletRequest request);

    void adsEdit(Integer iId, HttpServletRequest request);

    boolean eAdPic(String file, Integer id, HttpServletRequest request);

    boolean editAds(CIndex cIndex, HttpServletRequest request);

    boolean delAds(Integer[] ids, HttpServletRequest request);

    void views(HttpServletRequest request);

    boolean addView(CView cView, HttpServletRequest request);

    void viewEdit(Integer vId, HttpServletRequest request);

    boolean editView(CView cView, HttpServletRequest request);

    boolean delView(Integer[] ids, HttpServletRequest request);

    boolean addRole(CAdmin cAdmin, HttpServletRequest request);

    void roleEdit(Integer aId, HttpServletRequest request);

    boolean editRole(CAdmin cAdmin, HttpServletRequest request);

    boolean delRole(Integer[] ids, HttpServletRequest request);

    void index(HttpServletRequest request);

    void comments(HttpServletRequest request);

    boolean delComment(Integer[] ids, HttpServletRequest request);

    void pictures(Integer flag, Integer id, HttpServletRequest request);

    boolean addPicture(CPicture cPicture, HttpServletRequest request);

    boolean delPicture(Integer[] ids, HttpServletRequest request);

    boolean setInfo(CAdmin cAdmin, HttpServletRequest request);

    Integer setPassword(String oldPassword, String password, HttpServletRequest request);

    Integer addUpdate(MultipartFile file, CUpdate update, HttpServletRequest request);

    boolean editUpdate(CUpdate update, HttpServletRequest request);

    void updateEdit(Integer uId, HttpServletRequest request);

    boolean delUpdate(Integer[] ids, HttpServletRequest request);
}